//
// C:\Program Files (x86)\FlashDevelop\Tools\flexsdk\frameworks\libs\player\10.0\playerglobal.swc\flash\geom\Matrix
//
package flash.geom
{
	import flash.geom.Matrix;
	import flash.geom.Point;

	public class Matrix extends Object
	{
		
		public var a : Number;
		public var b : Number;
		public var c : Number;
		public var d : Number;
		public var tx : Number;
		public var ty : Number;
		
		
		public function Matrix (a:Number = 1, b:Number = 0, c:Number = 0, d:Number = 1, tx:Number = 0, ty:Number = 0)
		{
			this.a = a;
			this.b = b;
			this.c = c;
			this.d = d;
			this.tx = tx;
			this.ty = ty;
		}

		public function clone () : Matrix
		{
			return new Matrix(a, b, c, d, tx, ty);
		}

		public function concat (m:Matrix) : void;

		public function createBox (scaleX:Number, scaleY:Number, rotation:Number=0, tx:Number=0, ty:Number=0) : void;

		public function createGradientBox (width:Number, height:Number, rotation:Number=0, tx:Number=0, ty:Number=0) : void;

		public function deltaTransformPoint (point:Point) : flash.geom.Point;

		
		public function identity () : void;

		
		public function invert () : void;

		
		

		public function rotate (angle:Number) : void;

		public function scale (sx:Number, sy:Number) : void {
			a *= sx;
			d *= sy;
			tx *= sx;
			ty *= sy;
		}

		public function toString () : String
		{
			return "[object Matrix]";
		}


		public function transformPoint (point:Point) : Point
		{
			return new Point(point.x * a + tx, point.x * d + ty);
		}

		public function translate (dx:Number, dy:Number) : void
		{
			tx += dx;
			dy += dy;
		}
	}
}
